//
//  UnderLineTextField.swift
//  Copy_Aikaopu
//
//  Created by taojianz on 2017/6/28.
//  Copyright © 2017年 taojianz. All rights reserved.
//

import UIKit

class UnderLineTextField: UIView {

    var textField : UITextField!
    
    var lineView : UIView!
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.textField = UITextField()
        textField.frame.origin = CGPoint.zero
        textField.frame.size.width = frame.size.width
        textField.frame.size.height = frame.size.height-1
        
        self.addSubview(textField)
        
        self.lineView = UIView()
        
        lineView.frame = CGRect(x: 0, y: textField.frame.height, width: frame.size.width, height: 1)
        lineView.backgroundColor = .lightGray
        
        self.addSubview(lineView)
        
        
    }
    
    
    
    
    
    
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
